package com.hph.health.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 物流信息表
 * @TableName logistics_info
 */
@TableName(value ="logistics_info")
public class LogisticsInfo implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 物流ID
     */
    private String logisticsId;

    /**
     * 订单ID
     */
    private String orderId;

    /**
     * 物流公司
     */
    private String logisticsCompany;

    /**
     * 运单号
     */
    private String trackingNumber;

    /**
     * 商品重量
     */
    private Double weight;

    /**
     * 物流状态(0/1/2/3)
     */
    private Integer status;

    /**
     * 配送时间
     */
    private Date deliveryTime;

    /**
     * 配送地址
     */
    private String deliveryAdress;

    /**
     * 联系电话
     */
    private String deliveryPhone;

    /**
     * 联系人
     */
    private String contactPerson;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 是否删除
     */
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    public Long getId() {
        return id;
    }

    /**
     * id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 物流ID
     */
    public String getLogisticsId() {
        return logisticsId;
    }

    /**
     * 物流ID
     */
    public void setLogisticsId(String logisticsId) {
        this.logisticsId = logisticsId;
    }

    /**
     * 订单ID
     */
    public String getOrderId() {
        return orderId;
    }

    /**
     * 订单ID
     */
    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    /**
     * 物流公司
     */
    public String getLogisticsCompany() {
        return logisticsCompany;
    }

    /**
     * 物流公司
     */
    public void setLogisticsCompany(String logisticsCompany) {
        this.logisticsCompany = logisticsCompany;
    }

    /**
     * 运单号
     */
    public String getTrackingNumber() {
        return trackingNumber;
    }

    /**
     * 运单号
     */
    public void setTrackingNumber(String trackingNumber) {
        this.trackingNumber = trackingNumber;
    }

    /**
     * 商品重量
     */
    public Double getWeight() {
        return weight;
    }

    /**
     * 商品重量
     */
    public void setWeight(Double weight) {
        this.weight = weight;
    }

    /**
     * 物流状态(0/1/2/3)
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 物流状态(0/1/2/3)
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 配送时间
     */
    public Date getDeliveryTime() {
        return deliveryTime;
    }

    /**
     * 配送时间
     */
    public void setDeliveryTime(Date deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    /**
     * 配送地址
     */
    public String getDeliveryAdress() {
        return deliveryAdress;
    }

    /**
     * 配送地址
     */
    public void setDeliveryAdress(String deliveryAdress) {
        this.deliveryAdress = deliveryAdress;
    }

    /**
     * 联系电话
     */
    public String getDeliveryPhone() {
        return deliveryPhone;
    }

    /**
     * 联系电话
     */
    public void setDeliveryPhone(String deliveryPhone) {
        this.deliveryPhone = deliveryPhone;
    }

    /**
     * 联系人
     */
    public String getContactPerson() {
        return contactPerson;
    }

    /**
     * 联系人
     */
    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 是否删除
     */
    public Integer getIsDelete() {
        return isDelete;
    }

    /**
     * 是否删除
     */
    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LogisticsInfo other = (LogisticsInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getLogisticsId() == null ? other.getLogisticsId() == null : this.getLogisticsId().equals(other.getLogisticsId()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getLogisticsCompany() == null ? other.getLogisticsCompany() == null : this.getLogisticsCompany().equals(other.getLogisticsCompany()))
            && (this.getTrackingNumber() == null ? other.getTrackingNumber() == null : this.getTrackingNumber().equals(other.getTrackingNumber()))
            && (this.getWeight() == null ? other.getWeight() == null : this.getWeight().equals(other.getWeight()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getDeliveryTime() == null ? other.getDeliveryTime() == null : this.getDeliveryTime().equals(other.getDeliveryTime()))
            && (this.getDeliveryAdress() == null ? other.getDeliveryAdress() == null : this.getDeliveryAdress().equals(other.getDeliveryAdress()))
            && (this.getDeliveryPhone() == null ? other.getDeliveryPhone() == null : this.getDeliveryPhone().equals(other.getDeliveryPhone()))
            && (this.getContactPerson() == null ? other.getContactPerson() == null : this.getContactPerson().equals(other.getContactPerson()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getLogisticsId() == null) ? 0 : getLogisticsId().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getLogisticsCompany() == null) ? 0 : getLogisticsCompany().hashCode());
        result = prime * result + ((getTrackingNumber() == null) ? 0 : getTrackingNumber().hashCode());
        result = prime * result + ((getWeight() == null) ? 0 : getWeight().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getDeliveryTime() == null) ? 0 : getDeliveryTime().hashCode());
        result = prime * result + ((getDeliveryAdress() == null) ? 0 : getDeliveryAdress().hashCode());
        result = prime * result + ((getDeliveryPhone() == null) ? 0 : getDeliveryPhone().hashCode());
        result = prime * result + ((getContactPerson() == null) ? 0 : getContactPerson().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", logisticsId=").append(logisticsId);
        sb.append(", orderId=").append(orderId);
        sb.append(", logisticsCompany=").append(logisticsCompany);
        sb.append(", trackingNumber=").append(trackingNumber);
        sb.append(", weight=").append(weight);
        sb.append(", status=").append(status);
        sb.append(", deliveryTime=").append(deliveryTime);
        sb.append(", deliveryAdress=").append(deliveryAdress);
        sb.append(", deliveryPhone=").append(deliveryPhone);
        sb.append(", contactPerson=").append(contactPerson);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}